﻿using System.ComponentModel;

namespace CleanArchitecture.Infrastructure.Models.Business.News
{
    /// <summary>
    /// Represents a news settings model
    /// </summary>
    public partial class NewsSettingsModel : BaseEntityModel
    {
        #region Properties

        [DisplayName("开启/关闭 新闻功能模块")]
        public bool Enabled { get; set; }
        [DisplayName("是否允许对文章留言或评论")]
        public bool AllowNotRegisteredUsersToLeaveComments { get; set; }
        [DisplayName("收到新文章留言或评论提醒")]
        public bool NotifyAboutNewNewsComments { get; set; }
        [DisplayName("主页显示新闻列表")]
        public bool ShowNewsOnMainPage { get; set; }
        [DisplayName("主页新闻展示总数")]
        public int MainPageNewsCount { get; set; }
        [DisplayName("主页新闻列表行数")]
        public int NewsArchivePageSize { get; set; }
        [DisplayName("ShowHeaderRSSUrl")]
        public bool ShowHeaderRssUrl { get; set; }
        [DisplayName("是否对新闻留言或评论审核后展示")]
        public bool NewsCommentsMustBeApproved { get; set; }
        [DisplayName("新闻/文章发布是否需要审核流程")]
        public bool CheckBeforePublish { get; set; }

        #endregion
    }
}
